package com.ocn.li.scmdy.common.utils;
import org.springframework.beans.BeansException;
import org.springframework.context.ApplicationContext;
import org.springframework.context.ApplicationContextAware;

/**
 * @类： <code>SpringUtils.java</code>
 * @描述：spring工具类
 * @版权所有：
 * @author： songwx
 * @version： V1, 2014-4-20 下午07:29:07
 */
public class SpringUtils implements ApplicationContextAware {
	private static ApplicationContext appContext;

	public void setApplicationContext(ApplicationContext applicationContext)
			throws BeansException {
		appContext = applicationContext;
	}

	public static Object getBean(String paramString) {
		return appContext.getBean(paramString);
	}
}
